home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
prolog
/
modprolg
/
mod-prol.lha
/
Prolog
/
Examples
/
slide5.mod
< prev
next >
Wrap
Text File
|
1992-06-09
|
296b
|
12 lines
structure test =
struct
fun node/3.
fun branch = node.
fun tree = branch.
test1 :-
write(branch(1,2,3)), nl.
test2 :-
branch(1,2,3) =.. [Name|_],
write(Name), nl.
end.